#include <math.h>
#include <iostream>
using std::cout;
using std::endl;

class Point{
public:
    Point(int x,int y)
    : _ix(x)
    , _iy(y)
    { cout << "point(int,int)" << endl; }
    friend float distance(const Point & lhs,const Point & rhs);
private:
    int _ix;
    int _iy;
};

float distance(const Point & lhs,const Point & rhs){
    return sqrt(pow(lhs._ix - rhs._ix,2)+ 
                pow(lhs._iy - rhs._iy,2));
}

void test0(){
    Point pt(0,0);
    Point pt2(3,4);
    cout << distance(pt,pt2) << endl;
}

int main(void){
    test0();
    return 0;
}
